﻿using System;
using System.ServiceModel;

namespace AutoMergeWCFHost
{
    class Program
    {
        static void Main(string[] args)
        {

            // Create a ServiceHost for the CalculatorService type.
            using (var serviceHost = new ServiceHost(typeof(AutoMergeWCFService.Service)))
            {
                // Open the ServiceHost to create listeners         // and start listening for messages.
                serviceHost.Open();

                // The service can now be accessed.
                Console.WriteLine("The AutoMerge WCF service is ready.");
                Console.WriteLine("Press <ENTER> to terminate service.");
                Console.WriteLine();
                Console.ReadLine();
            }
        }
    }
}
